Global Variables
The following global variables are available globally.
-
Undocumented
-
The maximum amount of errors that can occur in a 30-second period.
Declaration
Swift
public var maxErrors = 2 -
What to do after too many errors. Defaults to calling
abort.Declaration
Swift
public var afterTooManyErrors: () -> () = { abort() } -
How many errors have occured within the last 30 seconds.
Declaration
Swift
public var errorsInLast30Seconds = 0 -
A string that will be appended to the error message so that the bot’s author can be pinged by errors..
Declaration
Swift
public var ping = " (cc @<enter owner name here>)" -
A bool variable which will control the usage of the ping ^ variable.
Declaration
Swift
public var pingonerror = true
-
Undocumented
-
Undocumented
Global Variables Reference